package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.AreaDO;
import com.winshare.saleAssistant.domain.dto.resp.AreaRespDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface AreaMapper {

    int saveArea(AreaDO areaDO);

    int updateArea(AreaDO areaDO);

    int deleteArea(AreaDO areaDO);

    int countChildByArea(AreaDO areaDO);

    List<AreaRespDTO> getAllAreaList();

    int countByRegionArea(AreaDO areaDO);
}
